cmake_minimum_required(VERSION 3.0.2)
project(gazebo_moving_obstacle)

## Compile as C++11, supported in ROS Kinetic and newer
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
add_definitions(-std=c++11 -g -O3 -ftree-vectorize -march=native)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages

# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

find_package(catkin REQUIRED COMPONENTS
  roscpp
  message_filters
  #mav_msgs
  geometry_msgs
  sensor_msgs
  gazebo_msgs
  tf
  nav_msgs
  image_transport
  cv_bridge
)

find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)

add_definitions(${PCL_DEFINITIONS})

catkin_package()

include_directories(${PCL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)

add_executable(send_box_vel src/send_box_vel.cpp)
target_link_libraries(send_box_vel ${PCL_LIBRARIES} ${catkin_LIBRARIES})

